//删除
function btnDelete(ID){
    $.post("/Product/Delete/"+ID,function(){
        window.location.href="/Product/Index";
    });
}

//编辑
function btnUpdate(ID){
    window.location.href="/Product/Update/"+ID;
}

//返回
function btnReturns(){
    window.location.href="/Product/Index";
}
//保存
function btnSave(){
    var saveID =$("#saveID").val();
    var saveProductName =$("#saveProductName").val();
    var saveSupplier =$("#saveSupplier").val();
    var savePrice =$("#savePrice").val();
    var saveStock =$("#saveStock").val();
    var saveIsaveRemarksD =$("#saveRemarks").val();
    var obj ={
        saveID,
        saveProductName,
        saveSupplier ,
        savePrice ,
        saveStock,
        saveIsaveRemarksD
    }
    $.post("/Product/Save",obj,function(){
        window.location.href="/Product/Index";
    });
}

function btnAdd(){
   
    window.location.href="/Product/Update";
}